<?php
/** 
 * $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/plugins/function.pncCatalogLinkUrl.php,v $
 * $Author: pcornelissen $
 * $Revision: 1.3 $
 * $Date: 2003/12/08 12:09:47 $
 *
 * Type: Function
 *
 * Returns the url to view the catalog (categorylist). 
 *
 * Can be used as in &lt;a href='&lt;!--[ pncCatalogLinkUrl ]--&gt;'&gt;List of available Categoriest</a>
 *@return string url
 */

function smarty_function_pncCatalogLinkUrl($params, &$smarty)
{
//    extract($params);

    if( pnModAPILoad('zCart','user') )
    {
        return pnModAPIFunc ('zCart', 'user','pncModURL',
	        				  array( 'Module'   => 'zCart',
		        				     'Section'  => 'user',
			        			     'Function' => 'catalogview' ) );
    }
    else
    {
        $smarty->trigger_error( "pncCatalogLinkUrl: cannot load pnuserapi", E_USER_ERROR );
    }
    
}
?>
